package com.zhuiyun.project.api.collectVideo.service;

import com.zhuiyun.project.api.collectVideo.entity.CollectVideo;
import com.zhuiyun.project.api.collectVideo.model.CollectVideoModel;
import com.zhuiyun.project.api.collectVideo.model.FavoritesModel;
import com.zhuiyun.project.api.frontuser.model.FrontUserModel;
import com.zhuiyun.project.common.errorCode.CommonException;
import com.zhuiyun.project.common.response.CommonResult;
import org.springframework.web.multipart.MultipartFile;

/**
* @Author XC8
* @Description 用户收藏服务类
* @Date 2023/10/16 20:06
* @Return
*/
public interface CollectVideoService {

    /**
     * @Author LXJ
     * @Description 根据用户id查询倒序收藏列表
     * @Date 2023/12/12 8:28
     * @Return
     * @param userId
     */
    CommonResult getCollectVideoById(Integer userId,String videoTopic,String videoDesc,Integer Favorites) throws CommonException;

    /**
     * @Author LXJ
     * @Description 根据用户id查询正序收藏列表
     * @Date 2023/12/12 8:28
     * @Return
     * @param userId
     */
    CommonResult getCollectVideoByIdASC(Integer userId,String videoTopic,String videoDesc,Integer Favorites) throws CommonException;

    /**
    * @Author XC8
    * @Description 收藏
    * @Date 2024/3/8 9:41
    * @Return com.zhuiyun.project.common.response.CommonResult
    */
    CommonResult addCollectVideo(CollectVideoModel collectVideoModel) throws CommonException;

    /**
    * @Author XC8
    * @Description 取消收藏
    * @Date 2024/3/8 9:41
    * @Return com.zhuiyun.project.common.response.CommonResult
    */
    CommonResult collectVideoDelete(CollectVideoModel collectVideoModel) throws CommonException;



}
